﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;

namespace T.FAS.Runtime.DataAccess.SQLDom
{
    /// <summary>
    /// 查询过滤器
    /// </summary>
    [Serializable]
    public class QueryGroup
    { 
        /// <summary>
        /// 括号分组id
        /// </summary>
        public string GroupID { get; set; }

        /// <summary>
        /// 括号分组name
        /// </summary>
        public string GroupName { get; set; }

        /// <summary>
        /// 过滤条件的关系
        /// </summary>
        public QueryGroupLogicalOperator FilterRelation { get; set; } 

        /// <summary>
        /// 包含的查询条件
        /// </summary>
        public List<FilterClause> FilterClauses { get; set; }

        /// <summary>
        /// 子分组
        /// </summary>
        public List<QueryGroup> QueryGroups { get; set; }
    } 
}
